//
//  FQAboutUsViewController.swift
//  SwiftProject
//
//  Created by 董駸 on 2022/8/24.
//

import UIKit

class FQAboutUsViewController: BaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        navigationBarType = .light
    }
    
    override func initSubviews() {
        super.initSubviews()
        view.backgroundColor = .white
        
        let iconV = UIImageView(imageString: "AppIcon60x60")
        view.addSubview(iconV)
        
        iconV.snp.makeConstraints { make in
            make.centerX.equalToSuperview()
            make.size.equalTo(90)
            make.top.equalTo(NavigationContentTop + 65)
        }
        
        let titleLb = QMUILabel(font: .rSFont(16), textColor: .color51)
        titleLb.text = AppName
        view.addSubview(titleLb)
        
        titleLb.snp.makeConstraints { make in
            make.centerX.equalToSuperview()
            make.top.equalTo(iconV.snp.bottom).offset(7)
        }
        
        let versionLb = QMUILabel(font: .rSFont(14), textColor: .color51)
        versionLb.text = "V" + AppVersion
        view.addSubview(versionLb)
        
        versionLb.snp.makeConstraints { make in
            make.centerX.equalToSuperview()
            make.top.equalTo(titleLb.snp.bottom).offset(8)
        }
        
        let copyrightLb = QMUILabel(font: .rSFont(14), textColor: .color153, textAlignment: .center)
        copyrightLb.text = "版权所有：重庆两江新区宝升小额贷款\n股份有限公司"
        copyrightLb.numberOfLines = 0
        view.addSubview(copyrightLb)
        
        copyrightLb.snp.makeConstraints { make in
            make.centerX.equalToSuperview()
            make.bottom.equalTo(view.safeAreaLayoutGuide.snp.bottom).offset(-74)
        }
    }
   
    override func setupNavigationItems() {
        super.setupNavigationItems()
        title = "关于我们"
    }
}
